/*广告图片切换*/
$(function () {
    layui.use(['layer', 'form', 'element', 'carousel'], function () {
        var element = layui.element, layer = layui.layer, form = layui.form, carousel = layui.carousel;
        form.on('radio()', function (data) {
            $('#hidden-workType').val(data.value);
        });
        //改变下时间间隔、动画类型、高度
        carousel.render({
            elem: '#banner',
            interval: 3000,
            anim: 'default',
            height: '480px',
            width: '100%',
        });
        // 未登录
        var msg = $('.msg-code').text()
        if (msg === '000403') {
            openLogin(layer)
        }
    });
});
